import './assets/main.css'

import { createApp } from 'vue'

// 引入element plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'

// 引入组件
import GlobalComDemo from './components/GlobalComDemo.vue'

// 引入路由对象
import router from './router'

// 引入Vuex实例化对象
import store from './store'

// 声明一个vue实例化对象
const app = createApp(App)

// 注册全局组件
app.component('GlobalComDemo', GlobalComDemo)

// 使用element plus
app.use(ElementPlus)

// 注册路由
app.use(router)

// 注册Vuex
app.use(store)

app.mount('#app')